
package Admin;


import Bill.Add_Bill1;
import Bill.View_Product;
import Customer.Customer_Show;
import Product.Product_show;
import Product_Category.Product_CategoryShow;
import Staff.Change_pass1;
import Staff.Staff;
import Supplier.Supplier_Show;
import javax.swing.JOptionPane;

/**
 *
 * @author langtustupid
 */
public class Main_GUI extends javax.swing.JFrame {

    
    public Main_GUI() {
        initComponents();
        setLocationRelativeTo(null);
       
    }
    
    public void showID()
    {
        System.out.println("ID "+getStaffID());
    }
    
   
    String userName;
    
    private int staffID;

    public int getStaffID() {
        return staffID;
    }

    public void setStaffID(int staffID) {
        this.staffID = staffID;
    }
    
    public void setlable(String content){
        this.userName = content;
         jLabel_Chao.setText(this.userName);
    }
    String roles;
    public void setroles(String roles)
    {
          this.roles=roles;
          jLabel_roles.setText(this.roles);
          if(this.roles=="Admin")
          {
            jMenu_InventoryManager.setVisible(false);
            mnSalesManager.setVisible(false);
            jMenu_Salesperson.setVisible(false);
          }
          else if(this.roles=="Sales_Manager"){
            jMenu_InventoryManager.setVisible(false);
            jMenu_Admin.setVisible(false);
            jMenu_Salesperson.setVisible(false);

          }
          else if(this.roles=="Inventory_Manager"){
            jMenu_Admin.setVisible(false);
            mnSalesManager.setVisible(false);
            jMenu_Salesperson.setVisible(false);
          }
          else {
            jMenu_InventoryManager.setVisible(false);
            mnSalesManager.setVisible(false);
            jMenu_Admin.setVisible(false);

          }
        
       
          
    }

    
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel3 = new javax.swing.JPanel();
        jDesktopPane1 = new javax.swing.JDesktopPane();
        btnLogout = new javax.swing.JButton();
        jLabel17 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jLabel_Chao = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel_roles = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu_Admin = new javax.swing.JMenu();
        mnAdmin_Staff = new javax.swing.JMenuItem();
        mnAdmin_Product = new javax.swing.JMenuItem();
        mnAdmin_category = new javax.swing.JMenuItem();
        mnAdmin_Supplier = new javax.swing.JMenuItem();
        mnAdmin_Customer = new javax.swing.JMenuItem();
        mnAdmin_Bill = new javax.swing.JMenuItem();
        mnAdmin_MyAcount = new javax.swing.JMenu();
        mnAdmin_Changpass = new javax.swing.JMenuItem();
        mnSalesManager = new javax.swing.JMenu();
        mnProduct_SalesManager = new javax.swing.JMenuItem();
        mnCategory_SalesManager = new javax.swing.JMenuItem();
        mnSupplier_SalesManager = new javax.swing.JMenuItem();
        mnBill_SalesManager = new javax.swing.JMenuItem();
        mnAccount_SalesManager = new javax.swing.JMenu();
        mnChangepass_SalesManager = new javax.swing.JMenuItem();
        jMenu_InventoryManager = new javax.swing.JMenu();
        mnViewProduct_InventoryManager = new javax.swing.JMenuItem();
        mnAccount_InventoryManager = new javax.swing.JMenu();
        mnChangepass_Inventory = new javax.swing.JMenuItem();
        jMenu_Salesperson = new javax.swing.JMenu();
        mnCreateBill_Salesperson = new javax.swing.JMenuItem();
        mnViewProduct_Salesperson = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        mnchangpass_SalasPerson = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("GUI Main");
        setResizable(false);

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addComponent(jDesktopPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 879, javax.swing.GroupLayout.PREFERRED_SIZE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jDesktopPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 407, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        btnLogout.setBackground(new java.awt.Color(255, 204, 255));
        btnLogout.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Logoff.png"))); // NOI18N
        btnLogout.setText("Log out");
        btnLogout.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));
        btnLogout.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnLogoutActionPerformed(evt);
            }
        });

        jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/services-call-centre.jpg"))); // NOI18N

        jPanel1.setBackground(new java.awt.Color(204, 255, 255));
        jPanel1.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));

        jLabel1.setText("Hello !");

        jLabel_Chao.setText(" + User name ");

        jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel4.setText("Call CenTre");

        jLabel2.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel2.setText("© 2012 by HeroDev");

        jLabel5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel5.setText("HeroDev");

        jLabel6.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel6.setText("Trinh Cong Tuan (ScrumMaster)");

        jLabel7.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel7.setText("Nguyen Van Dung");

        jLabel8.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel8.setText("Tran Hoang Anh");

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel9.setText("Thanks faculty:");

        jLabel10.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel10.setText("Nguyen Tuan");

        jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabel12.setText("Contact us:");

        jLabel13.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel13.setText("Y!M:  tuantc_a05114@fpt.aptech.ac.vn");

        jLabel15.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel15.setText("Email:trung.laptrinh@gmail.com");

        jLabel14.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel14.setText("Phone:  01677222270");

        jLabel_roles.setText("+ Roles");

        jLabel11.setText("Your roles :");

        jLabel16.setFont(new java.awt.Font("Times New Roman", 0, 13)); // NOI18N
        jLabel16.setText("Nguyen Thanh Lam");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel1)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel_Chao, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel4)
                        .addGap(101, 101, 101)
                        .addComponent(jLabel5)
                        .addGap(111, 111, 111)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addGap(18, 18, 18)
                        .addComponent(jLabel_roles)
                        .addGap(27, 27, 27)
                        .addComponent(jLabel2)
                        .addGap(33, 33, 33)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel7)
                            .addComponent(jLabel6)
                            .addComponent(jLabel8)
                            .addComponent(jLabel16))))
                .addGap(47, 47, 47)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel15)
                    .addComponent(jLabel13)
                    .addComponent(jLabel12)
                    .addComponent(jLabel14))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(23, 23, 23)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel_Chao)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5)
                    .addComponent(jLabel9)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel11)
                        .addComponent(jLabel_roles))
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel2)
                        .addComponent(jLabel6)
                        .addComponent(jLabel10)
                        .addComponent(jLabel13)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel16)
                        .addGap(302, 302, 302))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel15)
                        .addContainerGap())))
        );

        jMenu_Admin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/admin.png"))); // NOI18N
        jMenu_Admin.setText("Administrator");

        mnAdmin_Staff.setText("Staff Manager");
        mnAdmin_Staff.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnAdmin_StaffActionPerformed(evt);
            }
        });
        jMenu_Admin.add(mnAdmin_Staff);

        mnAdmin_Product.setText("Product Manager");
        mnAdmin_Product.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnAdmin_ProductActionPerformed(evt);
            }
        });
        jMenu_Admin.add(mnAdmin_Product);

        mnAdmin_category.setText("Category product Manager");
        mnAdmin_category.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnAdmin_categoryActionPerformed(evt);
            }
        });
        jMenu_Admin.add(mnAdmin_category);

        mnAdmin_Supplier.setText("Supplier Manager");
        mnAdmin_Supplier.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnAdmin_SupplierActionPerformed(evt);
            }
        });
        jMenu_Admin.add(mnAdmin_Supplier);

        mnAdmin_Customer.setText("Customer Manager");
        mnAdmin_Customer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnAdmin_CustomerActionPerformed(evt);
            }
        });
        jMenu_Admin.add(mnAdmin_Customer);

        mnAdmin_Bill.setText("Bill Manager");
        jMenu_Admin.add(mnAdmin_Bill);

        mnAdmin_MyAcount.setText("My account Manager");

        mnAdmin_Changpass.setText("Change my pass");
        mnAdmin_Changpass.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnAdmin_ChangpassActionPerformed(evt);
            }
        });
        mnAdmin_MyAcount.add(mnAdmin_Changpass);

        jMenu_Admin.add(mnAdmin_MyAcount);

        jMenuBar1.add(jMenu_Admin);

        mnSalesManager.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Sales Manager.png"))); // NOI18N
        mnSalesManager.setText("Sales Manager");

        mnProduct_SalesManager.setText("Product Manager");
        mnProduct_SalesManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnProduct_SalesManagerActionPerformed(evt);
            }
        });
        mnSalesManager.add(mnProduct_SalesManager);

        mnCategory_SalesManager.setText("Category product Manager");
        mnCategory_SalesManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCategory_SalesManagerActionPerformed(evt);
            }
        });
        mnSalesManager.add(mnCategory_SalesManager);

        mnSupplier_SalesManager.setText("Supplier Manager");
        mnSupplier_SalesManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnSupplier_SalesManagerActionPerformed(evt);
            }
        });
        mnSalesManager.add(mnSupplier_SalesManager);

        mnBill_SalesManager.setText("Bill Manager");
        mnSalesManager.add(mnBill_SalesManager);

        mnAccount_SalesManager.setText("My account Manager");

        mnChangepass_SalesManager.setText("Change my pass");
        mnChangepass_SalesManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnChangepass_SalesManagerActionPerformed(evt);
            }
        });
        mnAccount_SalesManager.add(mnChangepass_SalesManager);

        mnSalesManager.add(mnAccount_SalesManager);

        jMenuBar1.add(mnSalesManager);

        jMenu_InventoryManager.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Inventory Manager.png"))); // NOI18N
        jMenu_InventoryManager.setText("Inventory Manager");

        mnViewProduct_InventoryManager.setText("View Product");
        mnViewProduct_InventoryManager.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnViewProduct_InventoryManagerActionPerformed(evt);
            }
        });
        jMenu_InventoryManager.add(mnViewProduct_InventoryManager);

        mnAccount_InventoryManager.setText("My account Manager");

        mnChangepass_Inventory.setText("Change my password");
        mnChangepass_Inventory.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnChangepass_InventoryActionPerformed(evt);
            }
        });
        mnAccount_InventoryManager.add(mnChangepass_Inventory);

        jMenu_InventoryManager.add(mnAccount_InventoryManager);

        jMenuBar1.add(jMenu_InventoryManager);

        jMenu_Salesperson.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/Sales person.png"))); // NOI18N
        jMenu_Salesperson.setText("Sales person");

        mnCreateBill_Salesperson.setText("Create Bill");
        mnCreateBill_Salesperson.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnCreateBill_SalespersonActionPerformed(evt);
            }
        });
        jMenu_Salesperson.add(mnCreateBill_Salesperson);

        mnViewProduct_Salesperson.setText("View Product");
        mnViewProduct_Salesperson.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnViewProduct_SalespersonActionPerformed(evt);
            }
        });
        jMenu_Salesperson.add(mnViewProduct_Salesperson);

        jMenu1.setText("My account Manager");

        mnchangpass_SalasPerson.setText("Change my pass");
        mnchangpass_SalasPerson.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                mnchangpass_SalasPersonMouseClicked(evt);
            }
        });
        mnchangpass_SalasPerson.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                mnchangpass_SalasPersonActionPerformed(evt);
            }
        });
        jMenu1.add(mnchangpass_SalasPerson);

        jMenu_Salesperson.add(jMenu1);

        jMenuBar1.add(jMenu_Salesperson);

        jMenu6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Image/help.png"))); // NOI18N
        jMenu6.setText("Help");
        jMenu6.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jMenu6MouseClicked(evt);
            }
        });
        jMenuBar1.add(jMenu6);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)
                            .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addContainerGap())
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(btnLogout)
                        .addGap(18, 18, 18))))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(btnLogout)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(143, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnLogoutActionPerformed
      this.dispose();
      new LogIn().setVisible(true);
    }//GEN-LAST:event_btnLogoutActionPerformed

    private void jMenu6MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu6MouseClicked
//       JOptionPane.showMessageDialog(null, "This version not support that !");
    }//GEN-LAST:event_jMenu6MouseClicked

    private void mnchangpass_SalasPersonMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mnchangpass_SalasPersonMouseClicked
      
    }//GEN-LAST:event_mnchangpass_SalasPersonMouseClicked

private void mnAdmin_StaffActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnAdmin_StaffActionPerformed
// TODO add your handling code here:
    Staff Staf = new Staff();
    jDesktopPane1.add(Staf);
    Staf.show();
}//GEN-LAST:event_mnAdmin_StaffActionPerformed

private void mnAdmin_ProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnAdmin_ProductActionPerformed
// TODO add your handling code here:
    Product_show product = new Product_show();
    jDesktopPane1.add(product);
    product.show();
}//GEN-LAST:event_mnAdmin_ProductActionPerformed

private void mnAdmin_categoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnAdmin_categoryActionPerformed
// TODO add your handling code here:
    Product_CategoryShow category = new Product_CategoryShow();
    jDesktopPane1.add(category);
    category.show();
}//GEN-LAST:event_mnAdmin_categoryActionPerformed

private void mnAdmin_SupplierActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnAdmin_SupplierActionPerformed
// TODO add your handling code here:
    Supplier_Show supplier = new Supplier_Show();
    jDesktopPane1.add(supplier);
    supplier.show();
}//GEN-LAST:event_mnAdmin_SupplierActionPerformed

private void mnAdmin_CustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnAdmin_CustomerActionPerformed
// TODO add your handling code here:
    Customer_Show customer = new Customer_Show();
    jDesktopPane1.add(customer);
    customer.show();
}//GEN-LAST:event_mnAdmin_CustomerActionPerformed

private void mnAdmin_ChangpassActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnAdmin_ChangpassActionPerformed
// TODO add your handling code here:
    String UserName = userName;
    Change_pass change_pass = new Change_pass();
    change_pass.setVisible(true);
}//GEN-LAST:event_mnAdmin_ChangpassActionPerformed

private void mnProduct_SalesManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnProduct_SalesManagerActionPerformed
// TODO add your handling code here:
    Product_show product_1 = new Product_show();
    jDesktopPane1.add(product_1);
    product_1.show();
}//GEN-LAST:event_mnProduct_SalesManagerActionPerformed

private void mnCategory_SalesManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCategory_SalesManagerActionPerformed
// TODO add your handling code here:
    Product_CategoryShow category_1 = new Product_CategoryShow();
    jDesktopPane1.add(category_1);
    category_1.show();
}//GEN-LAST:event_mnCategory_SalesManagerActionPerformed

private void mnSupplier_SalesManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnSupplier_SalesManagerActionPerformed
// TODO add your handling code here:
    Supplier_Show supplier_1 = new Supplier_Show();
    jDesktopPane1.add(supplier_1);
    supplier_1.show();
}//GEN-LAST:event_mnSupplier_SalesManagerActionPerformed

private void mnChangepass_SalesManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnChangepass_SalesManagerActionPerformed
// TODO add your handling code here:
    new Change_pass1().setVisible(true);
    
}//GEN-LAST:event_mnChangepass_SalesManagerActionPerformed

private void mnViewProduct_InventoryManagerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnViewProduct_InventoryManagerActionPerformed
// TODO add your handling code here:
    View_Product view = new View_Product();
    jDesktopPane1.add(view);
    view.show();
}//GEN-LAST:event_mnViewProduct_InventoryManagerActionPerformed

private void mnChangepass_InventoryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnChangepass_InventoryActionPerformed
// TODO add your handling code here:
    new Change_pass1().setVisible(true);
}//GEN-LAST:event_mnChangepass_InventoryActionPerformed

private void mnViewProduct_SalespersonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnViewProduct_SalespersonActionPerformed
// TODO add your handling code here:
    View_Product view_1 = new View_Product();
    jDesktopPane1.add(view_1);
    view_1.show();
}//GEN-LAST:event_mnViewProduct_SalespersonActionPerformed

private void mnchangpass_SalasPersonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnchangpass_SalasPersonActionPerformed
// TODO add your handling code here:
    new Change_pass1().setVisible(true);
}//GEN-LAST:event_mnchangpass_SalasPersonActionPerformed

private void mnCreateBill_SalespersonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mnCreateBill_SalespersonActionPerformed
// TODO add your handling code here:
    new Add_Bill1(staffID).setVisible(true);
}//GEN-LAST:event_mnCreateBill_SalespersonActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Main_GUI().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnLogout;
    private javax.swing.JDesktopPane jDesktopPane1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabel_Chao;
    private javax.swing.JLabel jLabel_roles;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenu jMenu_Admin;
    private javax.swing.JMenu jMenu_InventoryManager;
    private javax.swing.JMenu jMenu_Salesperson;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JMenu mnAccount_InventoryManager;
    private javax.swing.JMenu mnAccount_SalesManager;
    private javax.swing.JMenuItem mnAdmin_Bill;
    private javax.swing.JMenuItem mnAdmin_Changpass;
    private javax.swing.JMenuItem mnAdmin_Customer;
    private javax.swing.JMenu mnAdmin_MyAcount;
    private javax.swing.JMenuItem mnAdmin_Product;
    private javax.swing.JMenuItem mnAdmin_Staff;
    private javax.swing.JMenuItem mnAdmin_Supplier;
    private javax.swing.JMenuItem mnAdmin_category;
    private javax.swing.JMenuItem mnBill_SalesManager;
    private javax.swing.JMenuItem mnCategory_SalesManager;
    private javax.swing.JMenuItem mnChangepass_Inventory;
    private javax.swing.JMenuItem mnChangepass_SalesManager;
    private javax.swing.JMenuItem mnCreateBill_Salesperson;
    private javax.swing.JMenuItem mnProduct_SalesManager;
    private javax.swing.JMenu mnSalesManager;
    private javax.swing.JMenuItem mnSupplier_SalesManager;
    private javax.swing.JMenuItem mnViewProduct_InventoryManager;
    private javax.swing.JMenuItem mnViewProduct_Salesperson;
    private javax.swing.JMenuItem mnchangpass_SalasPerson;
    // End of variables declaration//GEN-END:variables

}
